<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.0/css/all.css">
</head>
<body>


  
<glyph unicode="*" d="M100 500v200h259l-183 183l141 141l183 -183v259h200v-259l183 183l141 -141l-183 -183h259v-200h-259l183 -183l-141 -141l-183 183v-259h-200v259l-183 -183l-141 141l183 183h-259z" />
<glyph unicode="+" d="M0 400v300h400v400h300v-400h400v-300h-400v-400h-300v400h-400z" />



<div id="contain" onclick="onSend();">确定</div>
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
<script type="text/javascript">
    $hh=[];
    $(function(){
        
        $("glyph").each(function(i){
            //无名字的操作
            $hh[i]=$(this).attr("d")+"";
           // 有名字的操作
          // $hh[i]={"path":$(this).attr("d")+"","name":$(this).attr("glyph-name")+""};
        });
        
        

        // console.log($hh);
    });

    function onSend(){
        console.log($hh);
        $.post("http://www.pk.pk:8080/index.php",{"data":$hh},function(){

        });
    }
</script>

</body>
</html>
